Get date in EnhancedChangesList::recentChangesLine from baseRC
authoraude <aude.wiki@gmail.com>
Tue, 26 Nov 2013 10:35:24 +0000 (11:35 +0100)
committeraude <aude.wiki@gmail.com>
Tue, 26 Nov 2013 10:39:59 +0000 (11:39 +0100)
$cachedEntry gets set with baseRC, so baseRC timestamp is the
same as $cachedEntry timestamp.

Doing things this way makes it more feasible to split out some
of the change formatting code.

Change-Id: I1cae6174c827802d525bb95ed152c64008ce7360

includes/changes/EnhancedChangesList.php

index c8439be..7208da3 100644 (file)
@@ -64,7 +64,7 @@ class EnhancedChangesList extends ChangesList {
 
                # If it's a new day, add the headline and flush the cache
                $date = $this->getLanguage()->userDate(
-                       $cacheEntry->mAttribs['rc_timestamp'],
+                       $baseRC->mAttribs['rc_timestamp'],
                        $this->getUser()
                );